<?php
require_once 'XB/Loader/Interface.php';

abstract class XB_Loader_Abstract implements XB_Loader_Interface {
	protected $_paths = array();
	
	public function addPath($tag,$path) {
		if(!isset($this->_paths[$tag])){
			$this->_paths[$tag] = $path;
			return ;
		}
		throw new Exception('PATH ERROR');
    }
    
    protected function setAutoloadRegister($className,$function){
    	spl_autoload_register(array($className, $function));
    }
    
    public function removePath($tag){
    	unset($this->_paths[$tag]);
    }
}

?>